#include<iostream>
#include<random>
#include<algorithm>
#include<cstdlib>
using namespace std;

int main(void)
{
	uniform_int_distribution<int> dist(0, 100);
	random_device g;
	int a[20];
	
	generate(a, a + 20, [&dist, &g](void) -> int {return dist(g);});
	for_each(a, a + 20, [](int n){cout<< n << "\t";});
	
	return 0;
}
